package org.i1510.common.enums;

public class SwitchEnumTest {
	public static enum Mode {
		INSERT, UPDATE, DELETE
	}

	public void show(Mode mode) {
		switch (mode) {
		case INSERT:
			System.out.println("INSERT");
			break;
		case UPDATE:
			System.out.println("UPDATE");
			break;
		case DELETE:
			System.out.println("DELETE");
			break;
		}
	}
	public static void main(String[] args) {
		SwitchEnumTest t = new SwitchEnumTest();
       
        t.show(Mode.UPDATE);
   
    }
}
